#{extends '/template/templateAdmin.html' /} 
<h1>Lista de Logins</h1>
	<table border="1">
		<tr>
			<th>Login</th>
			<th>Senha</th>
		</tr>
		#{list items: listaLogins, as: 'login'}
		<tr>
			<td>${login.login}</td>
			<td>${login.senha}</td>
			<td>
				<form action="@{Logins.editarLogin()}" method="post">
					<input type="button" value="Editar" />
				</form>
			
			</td>
			<td>
				<form action="@{Logins.excluirLogin()}" method="post">
					<input type="hidden" value="${login.id}" name="_id"/>
					<input type="button" value="Excluir" onclick="confirmar(this.form)"/>
				</form>
			</td>
		</tr>
		
		#{/list}
	</table>
	<a href="/menuAdministracao" >
		<input type="button" value="Voltar ao Menu" />
	</a>
